<script>
    var p="{$p}";//定义页码
    var cateId="{$cateId}";//定义分类
</script>
<php>if($listData){</php>
<volist name="listData" id="vo">
	<li>
		<i></i>
	    <h3><a href="javascript:;" onclick="selectexam({$vo.exam_id})">{$vo.exam_name}</a></h3>
	    <p><span>考试时间：{$vo.exam_begin_time} ~ {$vo.exam_end_time}</span><span>考试时长：{$vo.exam_total_time}</span></p>
	    <a class="btn" href="javascript:;" onclick="selectexam({$vo.exam_id})">开始做题</a>
	</li>
</volist>
<php>}else{</php>
<span>暂无考试信息</span>
<php>}</php>
<script >
//请求事件
function selectexam(id){
    var uid = '{$uid}';
    if(uid<=0){
        reg_login();
        return false;
    }else{
       window.location.href = U('exam/Index/exam')+"&id="+id; 
    }
}
</script>